import internal from 'stream'

export interface UserLoginType {
  username: string
  password: string
}

export interface UserType {
  username: string
  status: number
  // password: string
  // role: string
  // roleId: string
}

export interface LoginRes {
  token: string
  admin: AdminType
}

export interface AdminType {
  id: number
  username: string
  status: number
  login_ip: string
  login_time: string
  roles: RoleType[]
}

export interface RoleType {
  id: number
  name: string
}
